package com.example.model.vo;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;


@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class SatisfactionScoresVo {
    Integer userId;
    List<SatisfactionScore> satisfactionScores;

    public boolean find(Integer employeeId) {
        for (int i = 0; i < satisfactionScores.size(); i++) {
            if (satisfactionScores.get(i).getEmployeeId().equals(employeeId)) {
                return true;
            }
        }
        return false;
    }
}
